<html>
 <head>
    <title>[var.TITLE]</title>
    <link href="[var.ROOT_CSS_DIR]/main.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
    <link href="[var.ROOT_CSS_DIR]/facet/style.css" rel="STYLESHEET" type="text/css" charset="iso-8859-1" hreflang="en-us">
    <script type="text/javascript" src="[var.ROOT_DIR]js/common.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/doiMenuDOM.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/functions.js"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.php"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsmenu.cfg"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsverify.php?session=[var.SessionVar]"></script>
    <script type="text/javascript" src="[var.ROOT_DIR]js/jsinit.php?session=[var.SessionVar]"></script>
 </head>
 <body bgcolor="FFFFFF" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
    <table border="0" cellspacing="0" cellpadding="0" width="100%" align="[var.POSITION]">
        <tr>
            <td>[tbs_include.onshow;file=[var.HTMLHeader];getob;]</td>
        </tr>
        <tr>
            <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
                <tr>
                    <td background="[var.ROOT_IMG_DIR]/back-menu.gif">
                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                        <tr>
                            <td>
                            <script language="JavaScript" type="text/JavaScript">menu.Build();</script>
                          </td>
                              <td class="head-login">Login as [var.USERPROFILE_NAME]</td>
                        </tr>
                      </table>
                    </td>
                </tr>

                <tr>
                    <td class="mainmenu2"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
            </table>
            </td>
        </tr>
        <tr height="100%">
            <td>
            <table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
                <tr valign="top">
                    <td width="100%">
                        <table border="0" cellspacing="0" cellpadding="0" width="100%">
                            <tr>
                                <td class="head-path"></td>
                                <td class="corner-date">[var.CORNER_DATE]</td>
                            </tr>
                        </table>
                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                            <tr>
                                <td class="FacetHeaderContent" >.:[var.SubHeaderTitle]:.</td>
                            </tr>
                        </table>

                        <table border="0" cellspacing="0" cellpadding="5" width="100%">
                            <tr>
                                <td class="contentTitle">
                                Menu
                                </td>
                            </tr>
                            <tr>
                                <td class="content2">
                                <table cellspacing="2" cellpadding="0">
                                 <tr>
                                   <td>
                                    <input type="button" name="Action" value="<<Back" class="button" onClick="self.location.replace('[sys.script_name]')">
                                   </td>
                                                                                   <td>
                                     <input type="button" name="Action" value="Done" class="button" onClick="self.location.replace('[var.SERVER_URL]')">
                                   </td>
                                 </tr>
                                </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="content2">
                        <!-- FORM SECTION -->
                        <table border="0" cellspacing="0" cellpadding="0">
                        <form method="post" action="[var.FormAction]" name="[var.HTMLFormName]">

                             <!-- Kode Customer -->
                              <tr>
                                <td class="fieldCaption" align="right">Afiliasi</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="hidden" name="AFILIASI" value="[blv.AFILIASI]">
                                    <input type="radio" name="AFILIASI" value="Ya" [tbs_check;if [blv.AFILIASI]='Ya';then 'checked';else ''] [tbs_check;if [var.FormMode]=Edit;then 'disabled';else ''] onclick="document.getElementById('CUDEBTUR').maxLength = 5"> Ya &nbsp;
                                    <input type="radio" name="AFILIASI" value="Tidak" [tbs_check;if [blv.AFILIASI]='Tidak';then 'checked';else ''] [tbs_check;if [var.FormMode]=Edit;then 'disabled';else ''] onclick="document.getElementById('CUDEBTUR').maxLength = 6"> Tidak
                                </td>
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Debtur Code</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <input type="text" id="CUDEBTUR" name="[bln.CUDEBTUR]" value="[blv.CUDEBTUR;noerr]" size="15" onblur='[var.InitFunction]' onkeyup="this.value=this.value.toUpperCase();document.[var.HTMLFormName].CUCODE.value=this.value;" class="input">
                                <input type="hidden" name="[bln.CUCODE]" value="[blv.CUCODE;noerr]">
                                </td>
                              </tr>
                              <tr>
                                <td class="fieldCaption" align="right">Debtur Code Finance</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <input type="text" id="CUDEBTUR_FIN" name="[bln.CUDEBTUR_FIN]" value="[blv.CUDEBTUR_FIN;noerr]" size="15" class="input">                                
                                </td>
                              </tr>
                              <!-- Nama Customer -->
                              <tr>
                                <td class="fieldCaption" align="right">Line Business</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <select name="[bln.LBCODE]" class="input">
                                    <option value="">Select Value</option>
                                <option value="[LineBusinessblk.linebusiness_code]">[LineBusinessblk.linebusiness_name;block=option]</option>
                                <option>[blv.LBCODE;selected]</option>
                                    </select>
                                </td>
                              </tr>
                              <!-- Jenis berdasarkan bisnisnya -->
                              <tr>
                                <td class="fieldCaption" align="right">Description</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUNAME]" value="[blv.CUNAME;noerr]" maxlength="255" size="65" class="input"></td>
                              </tr>
                                <!-- Alamat -->
                              <tr>
                                <td class="fieldCaption" align="right">Address</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <textarea type="text" name="[bln.CUADDR]"  rows=4 cols=60 class="input">[blv.CUADDR;htmlconv=no;noerr]</textarea>
                                <!-- Kode Posvalue="[blv.CUADDR;noerr]" maxlength="255" size="25" class="input"> -->
                                </td>
                              </tr>

                                <!-- Kode Pos -->
                              <tr>
                                <td class="fieldCaption" align="right">Zip Code</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUZIP]" value="[blv.CUZIP;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>



                            <!-- Kode Negara -->
                              <tr>
                                <td class="fieldCaption" align="right">Country</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <select name="[bln.CNCODE]" class="input">
                                    <option value="">Select Value</option>
                                <option value="[Countryblk.CNCODE]">[Countryblk.CNDESC;block=option]</option>
                                <option>[blv.CNCODE;selected]</option>
                                    </select>
                                </td>
                              </tr>
                            <!-- Telepon -->
                              <tr>
                                <td class="fieldCaption" align="right">Phone</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUPHONE]" value="[blv.CUPHONE;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>

                             <!-- Fax -->
                              <tr>
                                <td class="fieldCaption" align="right">Fax</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUFAX]" value="[blv.CUFAX;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>


                            <!-- Contact Person -->
                              <tr>
                                <td class="fieldCaption" align="right">Contact Person</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUCONTACT]" value="[blv.CUCONTACT;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>

                            <!-- E-Mail -->
                              <tr>
                                <td class="fieldCaption" align="right">E-Mail</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUEMAIL]" value="[blv.CUEMAIL;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>

                              <!-- NPWP -->
                              <tr>
                                <td class="fieldCaption" align="right">NPWP</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUNPWP]" value="[blv.CUNPWP;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>

                              <!-- NPPKP -->
                              <tr>
                                <td class="fieldCaption" align="right">NPPKP</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.CUNPPKP]" value="[blv.CUNPPKP;noerr]" maxlength="255" size="25" class="input"></td>
                              </tr>

                              <!-- SKADA -->
                              <!--tr>
                                <td class="fieldCaption" align="right">Principal</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                <input type="checkbox" name="CUSKADA" value="1" [tbs_check;if [blv.CUSKADA]=1;then 'checked';else '']>
                                </td>
                              </tr-->

                              <!-- Debitur Code -->
                            <tr>
                                <td class="fieldCaption" align="right">Term Of Payment(TOP)</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption"><input type="text" name="[bln.TOP]" value="[blv.top;noerr]" maxlength="255" size="5" class="input"></td>
                              </tr>
                              <!--tr>
                                <td class="fieldCaption" align="right">Afiliasi</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="radio" name="AFILIASI" value="Ya" [tbs_check;if [blv.AFILIASI]='Ya';then 'checked';else '']> Ya &nbsp;
                                    <input type="radio" name="AFILIASI" value="Tidak" [tbs_check;if [blv.AFILIASI]='Tidak';then 'checked';else '']> Tidak
                                </td>
                              </tr-->
                              <tr>[tbs_check;if [var.IS_ADMIN] = 'Ya'; block=tr]
                                <td class="fieldCaption" align="right">BALANCE IDR</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="text" name="[bln.BALANCE_IDR;noerr]" value="[blv.BALANCE_IDR;noerr]" size="15" class="input">
                                </td>
                              </tr>
                              <tr>[tbs_check;if [var.IS_ADMIN] = 'Ya'; block=tr]
                                <td class="fieldCaption" align="right">BALANCE USD</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="text" name="[bln.BALANCE_USD;noerr]" value="[blv.BALANCE_USD;noerr]" size="15" class="input">
                                </td>
                              </tr>
                              <tr valign="top">[tbs_check;if [var.IS_ADMIN] = 'Ya'; block=tr]
                                <td class="fieldCaption" align="right">BALANCE USD <br/ >(konversi rupiah)</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="text" name="[bln.BALANCE_USD_RUPIAH;noerr]" value="[blv.BALANCE_USD_RUPIAH;noerr]" size="15" class="input">
                                </td>
                              </tr>
                              <tr>[tbs_check;if [var.IS_ADMIN] = 'Ya'; block=tr]
                                <td class="fieldCaption" align="right">BALANCE DATE</td>
                                <td class="fieldCaption">:</td>
                                <td class="fieldCaption">
                                    <input type="text" name="[bln.BALANCE_DATE;noerr]" value="[blv.BALANCE_DATE;noerr]" size="10" class="input">
                                </td>
                              </tr>

                               <td class="fieldCaption"></td>
                               <td class="fieldCaption"></td>
                               <td align="right" class="fieldCaption">
                                <table border="0" cellspacing="2" cellpadding="0">
                                    <tr>
                                        <td>[tbs_check;block=td;if [var.FormMode]=Add][tbs_check;block=td;if [var.USER_CANINSERT]=1]
                                        <input name="Action" type="submit" value="Add" class="button" OnClick="return [tbs_check;if [var.Verification]=Enable;then 'VerifyForm(this.form)';else 'true']">
                                        </td>
                                        <td>[tbs_check;block=td;if [var.FormMode]=Edit][tbs_check;block=td;if [var.USER_CANUPDATE]=1]
                                        <input name="Action" type="submit" value="Update" class="button" onclick="return [tbs_check;if [var.Verification]=Enable;then 'VerifyForm(this.form)';else 'true']">
                                        </td>
                                        <td>[tbs_check;block=td;if [var.FormMode]=Edit][tbs_check;block=td;if [var.USER_CANDELETE]=1]
                                        <input name="Action" type="submit" value="Delete" class="button">
                                        </td>
                                        <td>
                                        <input name="Action" type="submit" value="Cancel" class="button">
                                        <input name="Action" type="button" value="Check" class="button" onclick="GetRadio()">

                                        </td>
                                    </tr>
                                </table>
                                </td>
                              </tr>
                         </form>
                         </table>
                         <!-- FORM SECTION -->
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            </td>
        </tr>
        <tr>
            <td>
            <br>
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="footer1"><img src="images/spacer.gif" height="1" width="1"></td>
                </tr>
                <!--tr>
                    <td class="footer2">Prototype Test - Web Application</td>
                </tr-->
            </table>
            </td>
        </tr>
    </table>
 </body>
</html>

<script>
/* Untuk mengambil value radio button dalam menentukan afiliasi, tidak jadi dipakai

    function GetRadio(){
        var radioSelected = document.CustForm.AFILIASI ;

        alert ('masuk function');

        for(i=0 ; i < radioSelected.length ; i++){
            if(radioSelected[i].checked == true){
                //alert("radio selected = " + radioSelected[i].value);
                document.getElementById("CUDEBTUR").maxLength = 5;
            }
        }
    }


    function cekAfiliasi(){
        document.getElementById("CUDEBTUR").maxLength = 5;
    }
*/
</script>
